package com.probiz.estoresa.system.web.action;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.validation.BindException;
import org.springframework.web.servlet.ModelAndView;

import com.probiz.estore.common.model.system.PaymentGateway;
import com.probiz.estore.core.controller.GenericStoreAdminController;
import com.probiz.estore.system.service.PaymentGatewayManager;


public class PaymentGatewayController extends GenericStoreAdminController<PaymentGateway>  {
    private PaymentGatewayManager paymentGatewayManager = null;
    
    public void setPaymentGatewayManager(PaymentGatewayManager paymentGatewayManager) {
        this.paymentGatewayManager = paymentGatewayManager;
    }
   
    public ModelAndView defaultAction(HttpServletRequest request, HttpServletResponse response){
        if (logger.isDebugEnabled()) {
            logger.debug("entering 'PaymentGatewayController defaultAction' method...");
        }
		
		return super.defaultAction(request, response);
	
    }
    
    @Override
	protected String getEntityName(PaymentGateway entity) {
		return entity.getPaymentGatewayName();
	}


	@Override
	protected void initController() throws Exception {
		this.mgr = paymentGatewayManager;
	}

	@Override
	protected void preSave(HttpServletRequest request, PaymentGateway entity, BindException errors) {
		
	}    
  	  	
        
}
